package com.study.controller;

import com.study.entity.PreUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WebController {

    @Autowired
    private PreUser preUser;

    @RequestMapping("/index")
    public PreUser index() {
        return preUser;
    }
}
